home *** CD-ROM | disk | FTP | other *** search
/ PC World Komputer 2010 April / PCWorld0410.iso / pluginy Firefox / 8542 / 8542.xpi / chrome / lastpass.jar / content / sesame.js < prev    next >
Text File  |  2010-02-14  |  2KB  |  6 lines

  1. var lpsesameusername=null;function window_load(B,A){lpsesameusername=(typeof(A.arguments)!="undefined"&&A.arguments.length>0&&typeof(A.arguments[0])!="undefined"&&typeof(A.arguments[0].username)!="undefined")?A.arguments[0].username:null;B.title=LP.lpgs("Sesame Multifactor Authentication");LP.sr(B,"lpsesame1","value","1. Run the LastPass Sesame application to generate a one time password");
  2. LP.sr(B,"lpsesame2","value","2. Paste the one time password in the input box below and click 'Authenticate'");LP.sr(B,"lpsesameotp","value","");LP.sr(B,"lpbutton","label","Authenticate");LP.sr(B,"lpsesamelost","value","If you lost your Sesame device, click here to disable Sesame authentication");LP.sr(B,"lptrust","label","This computer is trusted, do not require a second form of authentication.");
  3. LP.sr(B,"lplabeltext","value","Please provide this computer a name");B.getElementById("lpsesameotp").focus();if(A.arguments[0].username==null){B.getElementById("lpsesamelost").style.display="none";LP.sr(B,"lpsesame1","value","SesameOfflineStep1");LP.sr(B,"lpsesame2","value","SesameOfflineStep2")}}function lpsesameaccept(B,A){if(B.getElementById("lptrust").checked){if(B.getElementById("trustlabel").value==""){LP.alert(LP.lpgs("Please provide this computer a name"));
  4. return false}else{if(typeof(A.arguments)!="undefined"&&A.arguments.length>0){A.arguments[0].label=B.getElementById("trustlabel").value}}}if(typeof(A.arguments)!="undefined"&&A.arguments.length>0){A.arguments[0].otp=B.getElementById("lpsesameotp").value}return true}function lpsesamecancel(B,A){if(typeof(A.arguments)!="undefined"&&A.arguments.length>0){A.arguments[0].otp=""
  5. }}function lpsesamelost(){if(lpsesameusername){LP.lpbaseopen("sesamedisable.php?cmd=sendemail&username="+encodeURIComponent(lpsesameusername))}};
  6.